.class public Lcom/ss/android/socialbase/downloader/downloader/f;
.super Ljava/lang/Object;
.source "DownloadStatusHandler.java"


# static fields
.field private static final p:Ljava/lang/String; = "f"


# instance fields
.field private a:Les/zn0;

.field private final b:Lcom/ss/android/socialbase/downloader/downloader/l;

.field private final c:Landroid/os/Handler;

.field private d:Les/ao0;

.field private e:Landroid/util/SparseArray;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Landroid/util/SparseArray<",
            "Les/sn0;",
            ">;"
        }
    .end annotation
.end field

.field private f:Landroid/util/SparseArray;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Landroid/util/SparseArray<",
            "Les/sn0;",
            ">;"
        }
    .end annotation
.end field

.field private g:Landroid/util/SparseArray;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Landroid/util/SparseArray<",
            "Les/sn0;",
            ">;"
        }
    .end annotation
.end field

.field private h:Z

.field private volatile i:J

.field private final j:Ljava/util/concurrent/atomic/AtomicLong;

.field private k:Z

.field private l:I

.field private m:J

.field private n:Les/hn0;

.field private o:Les/tn0;


# direct methods
.method static constructor <clinit>()V
    .locals 0

    return-void
.end method

.method public constructor <init>(Les/ao0;Landroid/os/Handler;)V
    .locals 3

    .line 1
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    const/4 v0, 0x0

    .line 2
    iput-boolean v0, p0, Lcom/ss/android/socialbase/downloader/downloader/f;->h:Z

    const-wide/16 v1, 0x0

    .line 3
    iput-wide v1, p0, Lcom/ss/android/socialbase/downloader/downloader/f;->i:J

    .line 4
    new-instance v1, Ljava/util/concurrent/atomic/AtomicLong;

    invoke-direct {v1}, Ljava/util/concurrent/atomic/AtomicLong;-><init>()V

    iput-object v1, p0, Lcom/ss/android/socialbase/downloader/downloader/f;->j:Ljava/util/concurrent/atomic/AtomicLong;

    .line 5
    iput-boolean v0, p0, Lcom/ss/android/socialbase/downloader/downloader/f;->k:Z

    .line 6
    iput-object p1, p0, Lcom/ss/android/socialbase/downloader/downloader/f;->d:Les/ao0;

    .line 7
    invoke-direct {p0}, Lcom/ss/android/socialbase/downloader/downloader/f;->j()V

    .line 8
    iput-object p2, p0, Lcom/ss/android/socialbase/downloader/downloader/f;->c:Landroid/os/Handler;

    .line 9
    invoke-static {}, Lcom/ss/android/socialbase/downloader/downloader/c;->v()Lcom/ss/android/socialbase/downloader/downloader/l;

    move-result-object p1

    iput-object p1, p0, Lcom/ss/android/socialbase/downloader/downloader/f;->b:Lcom/ss/android/socialbase/downloader/downloader/l;

    return-void
.end method

.method static synthetic a(Lcom/ss/android/socialbase/downloader/downloader/f;)Les/zn0;
    .locals 0

    .line 1
    iget-object p0, p0, Lcom/ss/android/socialbase/downloader/downloader/f;->a:Les/zn0;

    return-object p0
.end method

.method private a(ILcom/ss/android/socialbase/downloader/e/a;)V
    .locals 1

    const/4 v0, 0x1

    .line 46
    invoke-direct {p0, p1, p2, v0}, Lcom/ss/android/socialbase/downloader/downloader/f;->a(ILcom/ss/android/socialbase/downloader/e/a;Z)V

    return-void
.end method

.method private a(ILcom/ss/android/socialbase/downloader/e/a;Z)V
    .locals 7

    .line 47
    iget-object v0, p0, Lcom/ss/android/socialbase/downloader/downloader/f;->a:Les/zn0;

    invoke-virtual {v0}, Les/zn0;->X0()I

    move-result v0

    const/4 v1, 0x4

    const/4 v2, -0x3

    if-ne v0, v2, :cond_0

    if-ne p1, v1, :cond_0

    return-void

    .line 48
    :cond_0
    invoke-direct {p0}, Lcom/ss/android/socialbase/downloader/downloader/f;->j()V

    const/4 v3, 0x0

    if-eq p1, v1, :cond_1

    .line 49
    invoke-static {p1}, Lcom/ss/android/socialbase/downloader/b/f;->e(I)Z

    move-result v1

    if-eqz v1, :cond_1

    .line 50
    iget-object v1, p0, Lcom/ss/android/socialbase/downloader/downloader/f;->a:Les/zn0;

    invoke-virtual {v1, v3}, Les/zn0;->e(Z)V

    .line 51
    invoke-static {p1}, Lcom/ss/android/socialbase/downloader/b/f;->d(I)Z

    move-result v1

    if-eqz v1, :cond_1

    .line 52
    iget-object v1, p0, Lcom/ss/android/socialbase/downloader/downloader/f;->a:Les/zn0;

    invoke-virtual {v1}, Les/zn0;->p()V

    .line 53
    :cond_1
    iget-object v1, p0, Lcom/ss/android/socialbase/downloader/downloader/f;->o:Les/tn0;

    const/4 v4, 0x1

    if-eqz v1, :cond_3

    instance-of v5, v1, Les/ym0;

    if-eqz v5, :cond_3

    .line 54
    check-cast v1, Les/ym0;

    invoke-virtual {v1}, Les/ym0;->a()[I

    move-result-object v1

    if-eqz v1, :cond_3

    .line 55
    array-length v5, v1

    if-lez v5, :cond_3

    const/4 v5, 0x0

    .line 56
    :goto_0
    array-length v6, v1

    if-ge v5, v6, :cond_3

    .line 57
    aget v6, v1, v5

    if-ne p1, v6, :cond_2

    const/4 v1, 0x1

    goto :goto_1

    :cond_2
    add-int/lit8 v5, v5, 0x1

    goto :goto_0

    :cond_3
    const/4 v1, 0x0

    .line 58
    :goto_1
    invoke-static {p1}, Lcom/ss/android/socialbase/downloader/b/f;->c(I)Z

    move-result v5

    if-nez v5, :cond_4

    if-eqz v1, :cond_6

    .line 59
    :cond_4
    :try_start_0
    iget-object v1, p0, Lcom/ss/android/socialbase/downloader/downloader/f;->n:Les/hn0;

    if-eqz v1, :cond_5

    .line 60
    iget-object v1, p0, Lcom/ss/android/socialbase/downloader/downloader/f;->n:Les/hn0;

    iget-object v5, p0, Lcom/ss/android/socialbase/downloader/downloader/f;->a:Les/zn0;

    invoke-interface {v1, v5, p2, p1}, Les/hn0;->a(Les/zn0;Lcom/ss/android/socialbase/downloader/e/a;I)V
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    .line 61
    :catchall_0
    :cond_5
    iget-object v1, p0, Lcom/ss/android/socialbase/downloader/downloader/f;->o:Les/tn0;

    iget-object v5, p0, Lcom/ss/android/socialbase/downloader/downloader/f;->a:Les/zn0;

    invoke-static {v1, v5, p2, p1}, Les/do0;->a(Les/tn0;Les/zn0;Lcom/ss/android/socialbase/downloader/e/a;I)V

    :cond_6
    const/4 v1, 0x6

    if-ne p1, v1, :cond_7

    .line 62
    iget-object v1, p0, Lcom/ss/android/socialbase/downloader/downloader/f;->a:Les/zn0;

    const/4 v5, 0x2

    invoke-virtual {v1, v5}, Les/zn0;->b(I)V

    goto :goto_2

    :cond_7
    const/4 v1, -0x6

    if-ne p1, v1, :cond_8

    .line 63
    iget-object v1, p0, Lcom/ss/android/socialbase/downloader/downloader/f;->a:Les/zn0;

    invoke-virtual {v1, v2}, Les/zn0;->b(I)V

    goto :goto_2

    .line 64
    :cond_8
    iget-object v1, p0, Lcom/ss/android/socialbase/downloader/downloader/f;->a:Les/zn0;

    invoke-virtual {v1, p1}, Les/zn0;->b(I)V

    :goto_2
    if-eq v0, v2, :cond_9

    const/4 v1, -0x1

    if-ne v0, v1, :cond_c

    .line 65
    :cond_9
    iget-object v0, p0, Lcom/ss/android/socialbase/downloader/downloader/f;->a:Les/zn0;

    invoke-virtual {v0}, Les/zn0;->r0()Lcom/ss/android/socialbase/downloader/b/j;

    move-result-object v0

    sget-object v1, Lcom/ss/android/socialbase/downloader/b/j;->c:Lcom/ss/android/socialbase/downloader/b/j;

    if-ne v0, v1, :cond_a

    .line 66
    iget-object v0, p0, Lcom/ss/android/socialbase/downloader/downloader/f;->a:Les/zn0;

    sget-object v1, Lcom/ss/android/socialbase/downloader/b/j;->d:Lcom/ss/android/socialbase/downloader/b/j;

    invoke-virtual {v0, v1}, Les/zn0;->a(Lcom/ss/android/socialbase/downloader/b/j;)V

    .line 67
    :cond_a
    iget-object v0, p0, Lcom/ss/android/socialbase/downloader/downloader/f;->a:Les/zn0;

    invoke-virtual {v0}, Les/zn0;->s0()Lcom/ss/android/socialbase/downloader/b/a;

    move-result-object v0

    sget-object v1, Lcom/ss/android/socialbase/downloader/b/a;->d:Lcom/ss/android/socialbase/downloader/b/a;

    if-ne v0, v1, :cond_b

    .line 68
    iget-object v0, p0, Lcom/ss/android/socialbase/downloader/downloader/f;->a:Les/zn0;

    sget-object v1, Lcom/ss/android/socialbase/downloader/b/a;->e:Lcom/ss/android/socialbase/downloader/b/a;

    invoke-virtual {v0, v1}, Les/zn0;->a(Lcom/ss/android/socialbase/downloader/b/a;)V

    .line 69
    :cond_b
    iget-object v0, p0, Lcom/ss/android/socialbase/downloader/downloader/f;->a:Les/zn0;

    invoke-virtual {v0}, Les/zn0;->b0()Lcom/ss/android/socialbase/downloader/b/b;

    move-result-object v0

    sget-object v1, Lcom/ss/android/socialbase/downloader/b/b;->c:Lcom/ss/android/socialbase/downloader/b/b;

    if-ne v0, v1, :cond_c

    .line 70
    iget-object v0, p0, Lcom/ss/android/socialbase/downloader/downloader/f;->a:Les/zn0;

    sget-object v1, Lcom/ss/android/socialbase/downloader/b/b;->d:Lcom/ss/android/socialbase/downloader/b/b;

    invoke-virtual {v0, v1}, Les/zn0;->a(Lcom/ss/android/socialbase/downloader/b/b;)V

    .line 71
    :cond_c
    iget-object v0, p0, Lcom/ss/android/socialbase/downloader/downloader/f;->f:Landroid/util/SparseArray;

    iget-object v1, p0, Lcom/ss/android/socialbase/downloader/downloader/f;->a:Les/zn0;

    invoke-static {p1, v0, v4, v1, p2}, Lcom/ss/android/socialbase/downloader/m/e;->a(ILandroid/util/SparseArray;ZLes/zn0;Lcom/ss/android/socialbase/downloader/e/a;)V

    const/4 v0, -0x4

    if-ne p1, v0, :cond_d

    return-void

    :cond_d
    if-eqz p3, :cond_10

    .line 72
    iget-object p3, p0, Lcom/ss/android/socialbase/downloader/downloader/f;->e:Landroid/util/SparseArray;

    if-eqz p3, :cond_e

    invoke-virtual {p3}, Landroid/util/SparseArray;->size()I

    move-result p3

    if-gtz p3, :cond_f

    :cond_e
    iget-object p3, p0, Lcom/ss/android/socialbase/downloader/downloader/f;->g:Landroid/util/SparseArray;

    if-eqz p3, :cond_10

    invoke-virtual {p3}, Landroid/util/SparseArray;->size()I

    move-result p3

    if-lez p3, :cond_10

    iget-object p3, p0, Lcom/ss/android/socialbase/downloader/downloader/f;->a:Les/zn0;

    invoke-virtual {p3}, Les/zn0;->g0()Z

    move-result p3

    if-eqz p3, :cond_10

    :cond_f
    iget-object p3, p0, Lcom/ss/android/socialbase/downloader/downloader/f;->c:Landroid/os/Handler;

    if-eqz p3, :cond_10

    .line 73
    iget-object v0, p0, Lcom/ss/android/socialbase/downloader/downloader/f;->a:Les/zn0;

    invoke-virtual {v0}, Les/zn0;->N0()I

    move-result v0

    invoke-virtual {p3, p1, v0, v3, p2}, Landroid/os/Handler;->obtainMessage(IIILjava/lang/Object;)Landroid/os/Message;

    move-result-object p1

    invoke-virtual {p1}, Landroid/os/Message;->sendToTarget()V

    goto :goto_3

    .line 74
    :cond_10
    invoke-static {}, Lcom/ss/android/socialbase/downloader/downloader/c;->z()Lcom/ss/android/socialbase/downloader/impls/a;

    move-result-object p2

    if-eqz p2, :cond_11

    .line 75
    iget-object p3, p0, Lcom/ss/android/socialbase/downloader/downloader/f;->a:Les/zn0;

    invoke-virtual {p3}, Les/zn0;->N0()I

    move-result p3

    invoke-virtual {p2, p3, p1}, Lcom/ss/android/socialbase/downloader/impls/a;->a(II)V

    :cond_11
    :goto_3
    return-void
.end method

.method static synthetic a(Lcom/ss/android/socialbase/downloader/downloader/f;ILcom/ss/android/socialbase/downloader/e/a;)V
    .locals 0

    .line 2
    invoke-direct {p0, p1, p2}, Lcom/ss/android/socialbase/downloader/downloader/f;->a(ILcom/ss/android/socialbase/downloader/e/a;)V

    return-void
.end method

.method private a(JZ)Z
    .locals 4

    .line 39
    iget-object p1, p0, Lcom/ss/android/socialbase/downloader/downloader/f;->a:Les/zn0;

    invoke-virtual {p1}, Les/zn0;->z()J

    move-result-wide p1

    iget-object v0, p0, Lcom/ss/android/socialbase/downloader/downloader/f;->a:Les/zn0;

    invoke-virtual {v0}, Les/zn0;->c0()J

    move-result-wide v0

    const/4 v2, 0x0

    cmp-long v3, p1, v0

    if-nez v3, :cond_0

    .line 40
    :try_start_0
    iget-object p1, p0, Lcom/ss/android/socialbase/downloader/downloader/f;->b:Lcom/ss/android/socialbase/downloader/downloader/l;

    iget-object p2, p0, Lcom/ss/android/socialbase/downloader/downloader/f;->a:Les/zn0;

    invoke-virtual {p2}, Les/zn0;->N0()I

    move-result p2

    iget-object p3, p0, Lcom/ss/android/socialbase/downloader/downloader/f;->a:Les/zn0;

    invoke-virtual {p3}, Les/zn0;->z()J

    move-result-wide v0

    invoke-interface {p1, p2, v0, v1}, Lcom/ss/android/socialbase/downloader/downloader/l;->a(IJ)Les/zn0;
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    :catch_0
    move-exception p1

    .line 41
    invoke-virtual {p1}, Ljava/lang/Exception;->printStackTrace()V

    :goto_0
    return v2

    .line 42
    :cond_0
    iget-boolean p1, p0, Lcom/ss/android/socialbase/downloader/downloader/f;->h:Z

    const/4 p2, 0x4

    if-eqz p1, :cond_1

    .line 43
    iput-boolean v2, p0, Lcom/ss/android/socialbase/downloader/downloader/f;->h:Z

    .line 44
    iget-object p1, p0, Lcom/ss/android/socialbase/downloader/downloader/f;->a:Les/zn0;

    invoke-virtual {p1, p2}, Les/zn0;->b(I)V

    :cond_1
    const/4 p1, 0x0

    .line 45
    iget-object v0, p0, Lcom/ss/android/socialbase/downloader/downloader/f;->a:Les/zn0;

    invoke-virtual {v0}, Les/zn0;->F()Z

    move-result v0

    if-eqz v0, :cond_2

    if-eqz p3, :cond_2

    const/4 v2, 0x1

    :cond_2
    invoke-direct {p0, p2, p1, v2}, Lcom/ss/android/socialbase/downloader/downloader/f;->a(ILcom/ss/android/socialbase/downloader/e/a;Z)V

    return p3
.end method

.method static synthetic b(Lcom/ss/android/socialbase/downloader/downloader/f;)Lcom/ss/android/socialbase/downloader/downloader/l;
    .locals 0

    .line 1
    iget-object p0, p0, Lcom/ss/android/socialbase/downloader/downloader/f;->b:Lcom/ss/android/socialbase/downloader/downloader/l;

    return-object p0
.end method

.method private b(Lcom/ss/android/socialbase/downloader/e/a;)V
    .locals 4

    if-eqz p1, :cond_0

    .line 8
    invoke-virtual {p1}, Ljava/lang/Exception;->getCause()Ljava/lang/Throwable;

    move-result-object v0

    if-eqz v0, :cond_0

    invoke-virtual {p1}, Ljava/lang/Exception;->getCause()Ljava/lang/Throwable;

    move-result-object v0

    instance-of v0, v0, Landroid/database/sqlite/SQLiteFullException;

    if-eqz v0, :cond_0

    .line 9
    :try_start_0
    iget-object v0, p0, Lcom/ss/android/socialbase/downloader/downloader/f;->b:Lcom/ss/android/socialbase/downloader/downloader/l;

    iget-object v1, p0, Lcom/ss/android/socialbase/downloader/downloader/f;->a:Les/zn0;

    invoke-virtual {v1}, Les/zn0;->N0()I

    move-result v1

    invoke-interface {v0, v1}, Lcom/ss/android/socialbase/downloader/downloader/l;->f(I)Z
    :try_end_0
    .catch Landroid/database/sqlite/SQLiteException; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    :catch_0
    move-exception v0

    .line 10
    invoke-virtual {v0}, Landroid/database/sqlite/SQLiteException;->printStackTrace()V

    goto :goto_0

    .line 11
    :cond_0
    :try_start_1
    iget-object v0, p0, Lcom/ss/android/socialbase/downloader/downloader/f;->b:Lcom/ss/android/socialbase/downloader/downloader/l;

    iget-object v1, p0, Lcom/ss/android/socialbase/downloader/downloader/f;->a:Les/zn0;

    invoke-virtual {v1}, Les/zn0;->N0()I

    move-result v1

    iget-object v2, p0, Lcom/ss/android/socialbase/downloader/downloader/f;->a:Les/zn0;

    invoke-virtual {v2}, Les/zn0;->z()J

    move-result-wide v2

    invoke-interface {v0, v1, v2, v3}, Lcom/ss/android/socialbase/downloader/downloader/l;->b(IJ)Les/zn0;
    :try_end_1
    .catch Landroid/database/sqlite/SQLiteException; {:try_start_1 .. :try_end_1} :catch_1

    goto :goto_0

    .line 12
    :catch_1
    :try_start_2
    iget-object v0, p0, Lcom/ss/android/socialbase/downloader/downloader/f;->b:Lcom/ss/android/socialbase/downloader/downloader/l;

    iget-object v1, p0, Lcom/ss/android/socialbase/downloader/downloader/f;->a:Les/zn0;

    invoke-virtual {v1}, Les/zn0;->N0()I

    move-result v1

    invoke-interface {v0, v1}, Lcom/ss/android/socialbase/downloader/downloader/l;->f(I)Z
    :try_end_2
    .catch Landroid/database/sqlite/SQLiteException; {:try_start_2 .. :try_end_2} :catch_2

    goto :goto_0

    :catch_2
    move-exception v0

    .line 13
    invoke-virtual {v0}, Landroid/database/sqlite/SQLiteException;->printStackTrace()V

    .line 14
    :goto_0
    invoke-direct {p0, p1}, Lcom/ss/android/socialbase/downloader/downloader/f;->c(Lcom/ss/android/socialbase/downloader/e/a;)Lcom/ss/android/socialbase/downloader/e/a;

    move-result-object p1

    .line 15
    iget-object v0, p0, Lcom/ss/android/socialbase/downloader/downloader/f;->a:Les/zn0;

    invoke-virtual {v0, p1}, Les/zn0;->a(Lcom/ss/android/socialbase/downloader/e/a;)V

    const/4 v0, -0x1

    .line 16
    invoke-direct {p0, v0, p1}, Lcom/ss/android/socialbase/downloader/downloader/f;->a(ILcom/ss/android/socialbase/downloader/e/a;)V

    .line 17
    iget-object p1, p0, Lcom/ss/android/socialbase/downloader/downloader/f;->a:Les/zn0;

    invoke-virtual {p1}, Les/zn0;->N0()I

    move-result p1

    invoke-static {p1}, Les/jo0;->a(I)Les/jo0;

    move-result-object p1

    const/4 v0, 0x0

    const-string v1, "retry_schedule"

    .line 18
    invoke-virtual {p1, v1, v0}, Les/jo0;->a(Ljava/lang/String;I)I

    move-result p1

    if-lez p1, :cond_1

    .line 19
    invoke-static {}, Lcom/ss/android/socialbase/downloader/impls/r;->e()Lcom/ss/android/socialbase/downloader/impls/r;

    move-result-object p1

    iget-object v0, p0, Lcom/ss/android/socialbase/downloader/downloader/f;->a:Les/zn0;

    invoke-virtual {p1, v0}, Lcom/ss/android/socialbase/downloader/impls/r;->a(Les/zn0;)V

    :cond_1
    return-void
.end method

.method private b(Lcom/ss/android/socialbase/downloader/e/a;Z)V
    .locals 2

    .line 26
    iget-object v0, p0, Lcom/ss/android/socialbase/downloader/downloader/f;->b:Lcom/ss/android/socialbase/downloader/downloader/l;

    iget-object v1, p0, Lcom/ss/android/socialbase/downloader/downloader/f;->a:Les/zn0;

    invoke-virtual {v1}, Les/zn0;->N0()I

    move-result v1

    invoke-interface {v0, v1}, Lcom/ss/android/socialbase/downloader/downloader/l;->h(I)Les/zn0;

    if-eqz p2, :cond_0

    const/4 p2, 0x7

    goto :goto_0

    :cond_0
    const/4 p2, 0x5

    .line 27
    :goto_0
    invoke-direct {p0, p2, p1}, Lcom/ss/android/socialbase/downloader/downloader/f;->a(ILcom/ss/android/socialbase/downloader/e/a;)V

    return-void
.end method

.method private b(J)Z
    .locals 8

    .line 20
    iget-boolean v0, p0, Lcom/ss/android/socialbase/downloader/downloader/f;->k:Z

    const/4 v1, 0x1

    if-nez v0, :cond_0

    .line 21
    iput-boolean v1, p0, Lcom/ss/android/socialbase/downloader/downloader/f;->k:Z

    return v1

    .line 22
    :cond_0
    iget-wide v2, p0, Lcom/ss/android/socialbase/downloader/downloader/f;->i:J

    sub-long v2, p1, v2

    .line 23
    iget-object v0, p0, Lcom/ss/android/socialbase/downloader/downloader/f;->j:Ljava/util/concurrent/atomic/AtomicLong;

    invoke-virtual {v0}, Ljava/util/concurrent/atomic/AtomicLong;->get()J

    move-result-wide v4

    iget-wide v6, p0, Lcom/ss/android/socialbase/downloader/downloader/f;->m:J

    cmp-long v0, v4, v6

    if-gez v0, :cond_2

    iget v0, p0, Lcom/ss/android/socialbase/downloader/downloader/f;->l:I

    int-to-long v4, v0

    cmp-long v0, v2, v4

    if-ltz v0, :cond_1

    goto :goto_0

    :cond_1
    const/4 v1, 0x0

    :cond_2
    :goto_0
    if-eqz v1, :cond_3

    .line 24
    iput-wide p1, p0, Lcom/ss/android/socialbase/downloader/downloader/f;->i:J

    .line 25
    iget-object p1, p0, Lcom/ss/android/socialbase/downloader/downloader/f;->j:Ljava/util/concurrent/atomic/AtomicLong;

    const-wide/16 v2, 0x0

    invoke-virtual {p1, v2, v3}, Ljava/util/concurrent/atomic/AtomicLong;->set(J)V

    :cond_3
    return v1
.end method

.method private c(Lcom/ss/android/socialbase/downloader/e/a;)Lcom/ss/android/socialbase/downloader/e/a;
    .locals 3

    .line 3
    iget-object v0, p0, Lcom/ss/android/socialbase/downloader/downloader/f;->a:Les/zn0;

    invoke-virtual {v0}, Les/zn0;->N0()I

    move-result v0

    invoke-static {v0}, Les/jo0;->a(I)Les/jo0;

    move-result-object v0

    const-string v1, "download_failed_check_net"

    const/4 v2, 0x0

    invoke-virtual {v0, v1, v2}, Les/jo0;->a(Ljava/lang/String;I)I

    move-result v0

    const/4 v1, 0x1

    if-ne v0, v1, :cond_1

    .line 4
    invoke-static {p1}, Lcom/ss/android/socialbase/downloader/m/f;->h(Ljava/lang/Throwable;)Z

    move-result v0

    if-eqz v0, :cond_1

    .line 5
    invoke-static {}, Lcom/ss/android/socialbase/downloader/downloader/c;->b()Landroid/content/Context;

    move-result-object v0

    if-eqz v0, :cond_1

    .line 6
    invoke-static {v0}, Lcom/ss/android/socialbase/downloader/m/f;->b(Landroid/content/Context;)Z

    move-result v0

    if-nez v0, :cond_1

    .line 7
    new-instance v0, Lcom/ss/android/socialbase/downloader/e/a;

    iget-object v1, p0, Lcom/ss/android/socialbase/downloader/downloader/f;->a:Les/zn0;

    .line 8
    invoke-virtual {v1}, Les/zn0;->e1()Z

    move-result v1

    if-eqz v1, :cond_0

    const/16 v1, 0x3f5

    goto :goto_0

    :cond_0
    const/16 v1, 0x419

    .line 9
    :goto_0
    invoke-virtual {p1}, Lcom/ss/android/socialbase/downloader/e/a;->b()Ljava/lang/String;

    move-result-object p1

    invoke-direct {v0, v1, p1}, Lcom/ss/android/socialbase/downloader/e/a;-><init>(ILjava/lang/String;)V

    return-object v0

    :cond_1
    return-object p1
.end method

.method static synthetic c(Lcom/ss/android/socialbase/downloader/downloader/f;)V
    .locals 0

    .line 1
    invoke-direct {p0}, Lcom/ss/android/socialbase/downloader/downloader/f;->l()V

    return-void
.end method

.method static synthetic i()Ljava/lang/String;
    .locals 1

    .line 1
    sget-object v0, Lcom/ss/android/socialbase/downloader/downloader/f;->p:Ljava/lang/String;

    return-object v0
.end method

.method private j()V
    .locals 2

    .line 1
    iget-object v0, p0, Lcom/ss/android/socialbase/downloader/downloader/f;->d:Les/ao0;

    if-eqz v0, :cond_0

    .line 2
    invoke-virtual {v0}, Les/ao0;->a()Les/zn0;

    move-result-object v0

    iput-object v0, p0, Lcom/ss/android/socialbase/downloader/downloader/f;->a:Les/zn0;

    .line 3
    iget-object v0, p0, Lcom/ss/android/socialbase/downloader/downloader/f;->d:Les/ao0;

    sget-object v1, Lcom/ss/android/socialbase/downloader/b/h;->a:Lcom/ss/android/socialbase/downloader/b/h;

    invoke-virtual {v0, v1}, Les/ao0;->a(Lcom/ss/android/socialbase/downloader/b/h;)Landroid/util/SparseArray;

    move-result-object v0

    iput-object v0, p0, Lcom/ss/android/socialbase/downloader/downloader/f;->e:Landroid/util/SparseArray;

    .line 4
    iget-object v0, p0, Lcom/ss/android/socialbase/downloader/downloader/f;->d:Les/ao0;

    sget-object v1, Lcom/ss/android/socialbase/downloader/b/h;->c:Lcom/ss/android/socialbase/downloader/b/h;

    invoke-virtual {v0, v1}, Les/ao0;->a(Lcom/ss/android/socialbase/downloader/b/h;)Landroid/util/SparseArray;

    move-result-object v0

    iput-object v0, p0, Lcom/ss/android/socialbase/downloader/downloader/f;->g:Landroid/util/SparseArray;

    .line 5
    iget-object v0, p0, Lcom/ss/android/socialbase/downloader/downloader/f;->d:Les/ao0;

    sget-object v1, Lcom/ss/android/socialbase/downloader/b/h;->b:Lcom/ss/android/socialbase/downloader/b/h;

    invoke-virtual {v0, v1}, Les/ao0;->a(Lcom/ss/android/socialbase/downloader/b/h;)Landroid/util/SparseArray;

    move-result-object v0

    iput-object v0, p0, Lcom/ss/android/socialbase/downloader/downloader/f;->f:Landroid/util/SparseArray;

    .line 6
    iget-object v0, p0, Lcom/ss/android/socialbase/downloader/downloader/f;->d:Les/ao0;

    invoke-virtual {v0}, Les/ao0;->d()Les/hn0;

    move-result-object v0

    iput-object v0, p0, Lcom/ss/android/socialbase/downloader/downloader/f;->n:Les/hn0;

    .line 7
    iget-object v0, p0, Lcom/ss/android/socialbase/downloader/downloader/f;->d:Les/ao0;

    invoke-virtual {v0}, Les/ao0;->e()Les/tn0;

    move-result-object v0

    iput-object v0, p0, Lcom/ss/android/socialbase/downloader/downloader/f;->o:Les/tn0;

    :cond_0
    return-void
.end method

.method private k()V
    .locals 2

    .line 1
    invoke-static {}, Lcom/ss/android/socialbase/downloader/downloader/c;->q()Ljava/util/concurrent/ExecutorService;

    move-result-object v0

    if-eqz v0, :cond_0

    .line 2
    new-instance v1, Lcom/ss/android/socialbase/downloader/downloader/f$a;

    invoke-direct {v1, p0}, Lcom/ss/android/socialbase/downloader/downloader/f$a;-><init>(Lcom/ss/android/socialbase/downloader/downloader/f;)V

    invoke-interface {v0, v1}, Ljava/util/concurrent/Executor;->execute(Ljava/lang/Runnable;)V

    :cond_0
    return-void
.end method

.method private l()V
    .locals 4

    .line 1
    :try_start_0
    sget-object v0, Lcom/ss/android/socialbase/downloader/downloader/f;->p:Ljava/lang/String;

    const-string v1, "saveFileAsTargetName onSuccess"

    invoke-static {v0, v1}, Les/wn0;->b(Ljava/lang/String;Ljava/lang/String;)V

    .line 2
    iget-object v0, p0, Lcom/ss/android/socialbase/downloader/downloader/f;->a:Les/zn0;

    invoke-virtual {v0}, Les/zn0;->T()Lcom/ss/android/socialbase/downloader/b/i;

    move-result-object v0

    .line 3
    sget-object v1, Lcom/ss/android/socialbase/downloader/b/i;->a:Lcom/ss/android/socialbase/downloader/b/i;

    if-eq v0, v1, :cond_3

    const-string v1, ""

    .line 4
    sget-object v2, Lcom/ss/android/socialbase/downloader/b/i;->b:Lcom/ss/android/socialbase/downloader/b/i;

    if-ne v0, v2, :cond_0

    const-string v1, "md5 invalid because of file not exist"

    goto :goto_0

    .line 5
    :cond_0
    sget-object v2, Lcom/ss/android/socialbase/downloader/b/i;->c:Lcom/ss/android/socialbase/downloader/b/i;

    if-ne v0, v2, :cond_1

    const-string v1, "md5 invalid because of file md5 is empty"

    goto :goto_0

    .line 6
    :cond_1
    sget-object v2, Lcom/ss/android/socialbase/downloader/b/i;->d:Lcom/ss/android/socialbase/downloader/b/i;

    if-ne v0, v2, :cond_2

    const-string v1, "md5 invalid because of file md5 is not equals to task md5"

    .line 7
    :cond_2
    :goto_0
    new-instance v0, Lcom/ss/android/socialbase/downloader/e/a;

    const/16 v2, 0x40a

    invoke-direct {v0, v2, v1}, Lcom/ss/android/socialbase/downloader/e/a;-><init>(ILjava/lang/String;)V

    invoke-virtual {p0, v0}, Lcom/ss/android/socialbase/downloader/downloader/f;->a(Lcom/ss/android/socialbase/downloader/e/a;)V

    .line 8
    iget-object v0, p0, Lcom/ss/android/socialbase/downloader/downloader/f;->a:Les/zn0;

    invoke-static {v0}, Lcom/ss/android/socialbase/downloader/m/f;->a(Les/zn0;)V

    return-void

    .line 9
    :cond_3
    iget-object v0, p0, Lcom/ss/android/socialbase/downloader/downloader/f;->a:Les/zn0;

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Les/zn0;->g(Z)V

    const/4 v0, -0x3

    const/4 v1, 0x0

    .line 10
    invoke-direct {p0, v0, v1}, Lcom/ss/android/socialbase/downloader/downloader/f;->a(ILcom/ss/android/socialbase/downloader/e/a;)V

    .line 11
    iget-object v0, p0, Lcom/ss/android/socialbase/downloader/downloader/f;->b:Lcom/ss/android/socialbase/downloader/downloader/l;

    iget-object v1, p0, Lcom/ss/android/socialbase/downloader/downloader/f;->a:Les/zn0;

    invoke-virtual {v1}, Les/zn0;->N0()I

    move-result v1

    iget-object v2, p0, Lcom/ss/android/socialbase/downloader/downloader/f;->a:Les/zn0;

    invoke-virtual {v2}, Les/zn0;->c0()J

    move-result-wide v2

    invoke-interface {v0, v1, v2, v3}, Lcom/ss/android/socialbase/downloader/downloader/l;->c(IJ)Les/zn0;

    .line 12
    iget-object v0, p0, Lcom/ss/android/socialbase/downloader/downloader/f;->b:Lcom/ss/android/socialbase/downloader/downloader/l;

    iget-object v1, p0, Lcom/ss/android/socialbase/downloader/downloader/f;->a:Les/zn0;

    invoke-virtual {v1}, Les/zn0;->N0()I

    move-result v1

    invoke-interface {v0, v1}, Lcom/ss/android/socialbase/downloader/downloader/l;->d(I)V
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    goto :goto_1

    :catchall_0
    move-exception v0

    .line 13
    new-instance v1, Lcom/ss/android/socialbase/downloader/e/a;

    const/16 v2, 0x3f0

    const-string v3, "onCompleted"

    invoke-static {v0, v3}, Lcom/ss/android/socialbase/downloader/m/f;->b(Ljava/lang/Throwable;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    invoke-direct {v1, v2, v0}, Lcom/ss/android/socialbase/downloader/e/a;-><init>(ILjava/lang/String;)V

    invoke-virtual {p0, v1}, Lcom/ss/android/socialbase/downloader/downloader/f;->a(Lcom/ss/android/socialbase/downloader/e/a;)V

    :goto_1
    return-void
.end method


# virtual methods
.method public a()V
    .locals 2

    .line 3
    iget-object v0, p0, Lcom/ss/android/socialbase/downloader/downloader/f;->a:Les/zn0;

    invoke-virtual {v0}, Les/zn0;->t0()Z

    move-result v0

    if-eqz v0, :cond_0

    return-void

    .line 4
    :cond_0
    iget-object v0, p0, Lcom/ss/android/socialbase/downloader/downloader/f;->a:Les/zn0;

    const/4 v1, 0x1

    invoke-virtual {v0, v1}, Les/zn0;->b(I)V

    .line 5
    invoke-direct {p0}, Lcom/ss/android/socialbase/downloader/downloader/f;->k()V

    return-void
.end method

.method public a(JLjava/lang/String;Ljava/lang/String;)V
    .locals 7

    .line 6
    iget-object v0, p0, Lcom/ss/android/socialbase/downloader/downloader/f;->a:Les/zn0;

    invoke-virtual {v0, p1, p2}, Les/zn0;->c(J)V

    .line 7
    iget-object v0, p0, Lcom/ss/android/socialbase/downloader/downloader/f;->a:Les/zn0;

    invoke-virtual {v0, p3}, Les/zn0;->b(Ljava/lang/String;)V

    .line 8
    invoke-static {p4}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v0

    if-nez v0, :cond_0

    iget-object v0, p0, Lcom/ss/android/socialbase/downloader/downloader/f;->a:Les/zn0;

    invoke-virtual {v0}, Les/zn0;->O0()Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v0

    if-eqz v0, :cond_0

    .line 9
    iget-object v0, p0, Lcom/ss/android/socialbase/downloader/downloader/f;->a:Les/zn0;

    invoke-virtual {v0, p4}, Les/zn0;->c(Ljava/lang/String;)V

    .line 10
    :cond_0
    :try_start_0
    iget-object v1, p0, Lcom/ss/android/socialbase/downloader/downloader/f;->b:Lcom/ss/android/socialbase/downloader/downloader/l;

    iget-object v0, p0, Lcom/ss/android/socialbase/downloader/downloader/f;->a:Les/zn0;

    invoke-virtual {v0}, Les/zn0;->N0()I

    move-result v2

    move-wide v3, p1

    move-object v5, p3

    move-object v6, p4

    invoke-interface/range {v1 .. v6}, Lcom/ss/android/socialbase/downloader/downloader/l;->a(IJLjava/lang/String;Ljava/lang/String;)Les/zn0;
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    :catch_0
    move-exception p3

    .line 11
    invoke-virtual {p3}, Ljava/lang/Exception;->printStackTrace()V

    :goto_0
    const/4 p3, 0x3

    const/4 p4, 0x0

    .line 12
    invoke-direct {p0, p3, p4}, Lcom/ss/android/socialbase/downloader/downloader/f;->a(ILcom/ss/android/socialbase/downloader/e/a;)V

    .line 13
    iget-object p3, p0, Lcom/ss/android/socialbase/downloader/downloader/f;->a:Les/zn0;

    invoke-virtual {p3, p1, p2}, Les/zn0;->d(J)J

    move-result-wide p1

    iput-wide p1, p0, Lcom/ss/android/socialbase/downloader/downloader/f;->m:J

    .line 14
    iget-object p1, p0, Lcom/ss/android/socialbase/downloader/downloader/f;->a:Les/zn0;

    invoke-virtual {p1}, Les/zn0;->H()I

    move-result p1

    iput p1, p0, Lcom/ss/android/socialbase/downloader/downloader/f;->l:I

    const/4 p1, 0x1

    .line 15
    iput-boolean p1, p0, Lcom/ss/android/socialbase/downloader/downloader/f;->h:Z

    .line 16
    invoke-static {}, Lcom/ss/android/socialbase/downloader/impls/r;->e()Lcom/ss/android/socialbase/downloader/impls/r;

    move-result-object p1

    invoke-virtual {p1}, Lcom/ss/android/socialbase/downloader/impls/r;->d()V

    return-void
.end method

.method public a(Lcom/ss/android/socialbase/downloader/e/a;)V
    .locals 2

    .line 29
    iget-object v0, p0, Lcom/ss/android/socialbase/downloader/downloader/f;->a:Les/zn0;

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Les/zn0;->f(Z)V

    .line 30
    invoke-direct {p0, p1}, Lcom/ss/android/socialbase/downloader/downloader/f;->b(Lcom/ss/android/socialbase/downloader/e/a;)V

    return-void
.end method

.method public a(Lcom/ss/android/socialbase/downloader/e/a;Z)V
    .locals 3

    .line 22
    iget-object v0, p0, Lcom/ss/android/socialbase/downloader/downloader/f;->a:Les/zn0;

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Les/zn0;->f(Z)V

    .line 23
    iget-object v0, p0, Lcom/ss/android/socialbase/downloader/downloader/f;->j:Ljava/util/concurrent/atomic/AtomicLong;

    const-wide/16 v1, 0x0

    invoke-virtual {v0, v1, v2}, Ljava/util/concurrent/atomic/AtomicLong;->set(J)V

    .line 24
    invoke-direct {p0, p1, p2}, Lcom/ss/android/socialbase/downloader/downloader/f;->b(Lcom/ss/android/socialbase/downloader/e/a;Z)V

    return-void
.end method

.method public a(Les/yn0;Lcom/ss/android/socialbase/downloader/e/a;Z)V
    .locals 2

    .line 25
    iget-object p1, p0, Lcom/ss/android/socialbase/downloader/downloader/f;->a:Les/zn0;

    const/4 v0, 0x0

    invoke-virtual {p1, v0}, Les/zn0;->f(Z)V

    .line 26
    iget-object p1, p0, Lcom/ss/android/socialbase/downloader/downloader/f;->j:Ljava/util/concurrent/atomic/AtomicLong;

    const-wide/16 v0, 0x0

    invoke-virtual {p1, v0, v1}, Ljava/util/concurrent/atomic/AtomicLong;->set(J)V

    .line 27
    iget-object p1, p0, Lcom/ss/android/socialbase/downloader/downloader/f;->b:Lcom/ss/android/socialbase/downloader/downloader/l;

    iget-object v0, p0, Lcom/ss/android/socialbase/downloader/downloader/f;->a:Les/zn0;

    invoke-virtual {v0}, Les/zn0;->N0()I

    move-result v0

    invoke-interface {p1, v0}, Lcom/ss/android/socialbase/downloader/downloader/l;->h(I)Les/zn0;

    if-eqz p3, :cond_0

    const/16 p1, 0xa

    goto :goto_0

    :cond_0
    const/16 p1, 0x9

    :goto_0
    const/4 p3, 0x1

    .line 28
    invoke-direct {p0, p1, p2, p3}, Lcom/ss/android/socialbase/downloader/downloader/f;->a(ILcom/ss/android/socialbase/downloader/e/a;Z)V

    return-void
.end method

.method public a(Ljava/lang/String;)V
    .locals 4
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Lcom/ss/android/socialbase/downloader/e/a;
        }
    .end annotation

    .line 31
    sget-object v0, Lcom/ss/android/socialbase/downloader/downloader/f;->p:Ljava/lang/String;

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const-string v2, "onCompleteForFileExist existTargetFileName is "

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string v2, " but curName is "

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    iget-object v2, p0, Lcom/ss/android/socialbase/downloader/downloader/f;->a:Les/zn0;

    invoke-virtual {v2}, Les/zn0;->O0()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-static {v0, v1}, Les/wn0;->b(Ljava/lang/String;Ljava/lang/String;)V

    const/16 v0, 0x4000

    .line 32
    invoke-static {v0}, Lcom/ss/android/socialbase/downloader/m/c;->a(I)Z

    move-result v0

    const/4 v1, 0x0

    const/4 v2, -0x3

    if-eqz v0, :cond_0

    .line 33
    invoke-direct {p0, v2, v1}, Lcom/ss/android/socialbase/downloader/downloader/f;->a(ILcom/ss/android/socialbase/downloader/e/a;)V

    .line 34
    iget-object v0, p0, Lcom/ss/android/socialbase/downloader/downloader/f;->b:Lcom/ss/android/socialbase/downloader/downloader/l;

    iget-object v1, p0, Lcom/ss/android/socialbase/downloader/downloader/f;->a:Les/zn0;

    invoke-interface {v0, v1}, Lcom/ss/android/socialbase/downloader/downloader/l;->a(Les/zn0;)Z

    .line 35
    iget-object v0, p0, Lcom/ss/android/socialbase/downloader/downloader/f;->a:Les/zn0;

    invoke-static {v0, p1}, Lcom/ss/android/socialbase/downloader/m/f;->a(Les/zn0;Ljava/lang/String;)V

    goto :goto_0

    .line 36
    :cond_0
    iget-object v0, p0, Lcom/ss/android/socialbase/downloader/downloader/f;->b:Lcom/ss/android/socialbase/downloader/downloader/l;

    iget-object v3, p0, Lcom/ss/android/socialbase/downloader/downloader/f;->a:Les/zn0;

    invoke-interface {v0, v3}, Lcom/ss/android/socialbase/downloader/downloader/l;->a(Les/zn0;)Z

    .line 37
    iget-object v0, p0, Lcom/ss/android/socialbase/downloader/downloader/f;->a:Les/zn0;

    invoke-static {v0, p1}, Lcom/ss/android/socialbase/downloader/m/f;->a(Les/zn0;Ljava/lang/String;)V

    .line 38
    invoke-direct {p0, v2, v1}, Lcom/ss/android/socialbase/downloader/downloader/f;->a(ILcom/ss/android/socialbase/downloader/e/a;)V

    :goto_0
    return-void
.end method

.method public a(J)Z
    .locals 1

    .line 17
    iget-object v0, p0, Lcom/ss/android/socialbase/downloader/downloader/f;->j:Ljava/util/concurrent/atomic/AtomicLong;

    invoke-virtual {v0, p1, p2}, Ljava/util/concurrent/atomic/AtomicLong;->addAndGet(J)J

    .line 18
    iget-object v0, p0, Lcom/ss/android/socialbase/downloader/downloader/f;->a:Les/zn0;

    invoke-virtual {v0, p1, p2}, Les/zn0;->b(J)V

    .line 19
    invoke-static {}, Landroid/os/SystemClock;->uptimeMillis()J

    move-result-wide p1

    .line 20
    invoke-direct {p0, p1, p2}, Lcom/ss/android/socialbase/downloader/downloader/f;->b(J)Z

    move-result v0

    .line 21
    invoke-direct {p0, p1, p2, v0}, Lcom/ss/android/socialbase/downloader/downloader/f;->a(JZ)Z

    move-result p1

    return p1
.end method

.method public b()V
    .locals 2

    .line 2
    iget-object v0, p0, Lcom/ss/android/socialbase/downloader/downloader/f;->a:Les/zn0;

    invoke-virtual {v0}, Les/zn0;->t0()Z

    move-result v0

    if-eqz v0, :cond_0

    .line 3
    iget-object v0, p0, Lcom/ss/android/socialbase/downloader/downloader/f;->a:Les/zn0;

    invoke-virtual {v0}, Les/zn0;->u0()V

    return-void

    .line 4
    :cond_0
    iget-object v0, p0, Lcom/ss/android/socialbase/downloader/downloader/f;->b:Lcom/ss/android/socialbase/downloader/downloader/l;

    iget-object v1, p0, Lcom/ss/android/socialbase/downloader/downloader/f;->a:Les/zn0;

    invoke-virtual {v1}, Les/zn0;->N0()I

    move-result v1

    invoke-interface {v0, v1}, Lcom/ss/android/socialbase/downloader/downloader/l;->g(I)Les/zn0;

    .line 5
    iget-object v0, p0, Lcom/ss/android/socialbase/downloader/downloader/f;->a:Les/zn0;

    invoke-virtual {v0}, Les/zn0;->S()Z

    move-result v0

    const/4 v1, 0x0

    if-eqz v0, :cond_1

    const/4 v0, 0x6

    .line 6
    invoke-direct {p0, v0, v1}, Lcom/ss/android/socialbase/downloader/downloader/f;->a(ILcom/ss/android/socialbase/downloader/e/a;)V

    :cond_1
    const/4 v0, 0x2

    .line 7
    invoke-direct {p0, v0, v1}, Lcom/ss/android/socialbase/downloader/downloader/f;->a(ILcom/ss/android/socialbase/downloader/e/a;)V

    return-void
.end method

.method public c()V
    .locals 2

    const/4 v0, -0x4

    const/4 v1, 0x0

    .line 2
    invoke-direct {p0, v0, v1}, Lcom/ss/android/socialbase/downloader/downloader/f;->a(ILcom/ss/android/socialbase/downloader/e/a;)V

    return-void
.end method

.method public d()V
    .locals 5

    .line 1
    iget-object v0, p0, Lcom/ss/android/socialbase/downloader/downloader/f;->a:Les/zn0;

    const/4 v1, -0x2

    invoke-virtual {v0, v1}, Les/zn0;->b(I)V

    .line 2
    :try_start_0
    iget-object v0, p0, Lcom/ss/android/socialbase/downloader/downloader/f;->b:Lcom/ss/android/socialbase/downloader/downloader/l;

    iget-object v2, p0, Lcom/ss/android/socialbase/downloader/downloader/f;->a:Les/zn0;

    invoke-virtual {v2}, Les/zn0;->N0()I

    move-result v2

    iget-object v3, p0, Lcom/ss/android/socialbase/downloader/downloader/f;->a:Les/zn0;

    invoke-virtual {v3}, Les/zn0;->z()J

    move-result-wide v3

    invoke-interface {v0, v2, v3, v4}, Lcom/ss/android/socialbase/downloader/downloader/l;->d(IJ)Les/zn0;
    :try_end_0
    .catch Landroid/database/sqlite/SQLiteException; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    :catch_0
    move-exception v0

    .line 3
    invoke-virtual {v0}, Landroid/database/sqlite/SQLiteException;->printStackTrace()V

    :goto_0
    const/4 v0, 0x0

    .line 4
    invoke-direct {p0, v1, v0}, Lcom/ss/android/socialbase/downloader/downloader/f;->a(ILcom/ss/android/socialbase/downloader/e/a;)V

    return-void
.end method

.method public e()V
    .locals 3

    .line 1
    iget-object v0, p0, Lcom/ss/android/socialbase/downloader/downloader/f;->a:Les/zn0;

    const/4 v1, -0x7

    invoke-virtual {v0, v1}, Les/zn0;->b(I)V

    .line 2
    :try_start_0
    iget-object v0, p0, Lcom/ss/android/socialbase/downloader/downloader/f;->b:Lcom/ss/android/socialbase/downloader/downloader/l;

    iget-object v2, p0, Lcom/ss/android/socialbase/downloader/downloader/f;->a:Les/zn0;

    invoke-virtual {v2}, Les/zn0;->N0()I

    move-result v2

    invoke-interface {v0, v2}, Lcom/ss/android/socialbase/downloader/downloader/l;->j(I)Les/zn0;
    :try_end_0
    .catch Landroid/database/sqlite/SQLiteException; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    :catch_0
    move-exception v0

    .line 3
    invoke-virtual {v0}, Landroid/database/sqlite/SQLiteException;->printStackTrace()V

    :goto_0
    const/4 v0, 0x0

    .line 4
    invoke-direct {p0, v1, v0}, Lcom/ss/android/socialbase/downloader/downloader/f;->a(ILcom/ss/android/socialbase/downloader/e/a;)V

    return-void
.end method

.method public f()V
    .locals 5

    .line 1
    iget-object v0, p0, Lcom/ss/android/socialbase/downloader/downloader/f;->a:Les/zn0;

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Les/zn0;->f(Z)V

    .line 2
    iget-object v0, p0, Lcom/ss/android/socialbase/downloader/downloader/f;->a:Les/zn0;

    invoke-virtual {v0}, Les/zn0;->v()Z

    move-result v0

    if-nez v0, :cond_0

    iget-object v0, p0, Lcom/ss/android/socialbase/downloader/downloader/f;->a:Les/zn0;

    invoke-virtual {v0}, Les/zn0;->z()J

    move-result-wide v0

    iget-object v2, p0, Lcom/ss/android/socialbase/downloader/downloader/f;->a:Les/zn0;

    invoke-virtual {v2}, Les/zn0;->c0()J

    move-result-wide v2

    cmp-long v4, v0, v2

    if-eqz v4, :cond_0

    .line 3
    sget-object v0, Lcom/ss/android/socialbase/downloader/downloader/f;->p:Ljava/lang/String;

    iget-object v1, p0, Lcom/ss/android/socialbase/downloader/downloader/f;->a:Les/zn0;

    invoke-virtual {v1}, Les/zn0;->K0()Ljava/lang/String;

    move-result-object v1

    invoke-static {v0, v1}, Les/wn0;->b(Ljava/lang/String;Ljava/lang/String;)V

    .line 4
    new-instance v0, Lcom/ss/android/socialbase/downloader/e/f;

    const/16 v1, 0x403

    new-instance v2, Ljava/lang/StringBuilder;

    invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V

    const-string v3, "current bytes is not equals to total bytes, bytes changed with process : "

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    iget-object v3, p0, Lcom/ss/android/socialbase/downloader/downloader/f;->a:Les/zn0;

    invoke-virtual {v3}, Les/zn0;->b0()Lcom/ss/android/socialbase/downloader/b/b;

    move-result-object v3

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-direct {v0, v1, v2}, Lcom/ss/android/socialbase/downloader/e/f;-><init>(ILjava/lang/String;)V

    invoke-virtual {p0, v0}, Lcom/ss/android/socialbase/downloader/downloader/f;->a(Lcom/ss/android/socialbase/downloader/e/a;)V

    return-void

    .line 5
    :cond_0
    iget-object v0, p0, Lcom/ss/android/socialbase/downloader/downloader/f;->a:Les/zn0;

    invoke-virtual {v0}, Les/zn0;->z()J

    move-result-wide v0

    const-wide/16 v2, 0x0

    cmp-long v4, v0, v2

    if-gtz v4, :cond_1

    .line 6
    sget-object v0, Lcom/ss/android/socialbase/downloader/downloader/f;->p:Ljava/lang/String;

    iget-object v1, p0, Lcom/ss/android/socialbase/downloader/downloader/f;->a:Les/zn0;

    invoke-virtual {v1}, Les/zn0;->K0()Ljava/lang/String;

    move-result-object v1

    invoke-static {v0, v1}, Les/wn0;->b(Ljava/lang/String;Ljava/lang/String;)V

    .line 7
    new-instance v0, Lcom/ss/android/socialbase/downloader/e/f;

    const/16 v1, 0x402

    new-instance v2, Ljava/lang/StringBuilder;

    invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V

    const-string v3, "curBytes is 0, bytes changed with process : "

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    iget-object v3, p0, Lcom/ss/android/socialbase/downloader/downloader/f;->a:Les/zn0;

    invoke-virtual {v3}, Les/zn0;->b0()Lcom/ss/android/socialbase/downloader/b/b;

    move-result-object v3

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-direct {v0, v1, v2}, Lcom/ss/android/socialbase/downloader/e/f;-><init>(ILjava/lang/String;)V

    invoke-virtual {p0, v0}, Lcom/ss/android/socialbase/downloader/downloader/f;->a(Lcom/ss/android/socialbase/downloader/e/a;)V

    return-void

    .line 8
    :cond_1
    iget-object v0, p0, Lcom/ss/android/socialbase/downloader/downloader/f;->a:Les/zn0;

    invoke-virtual {v0}, Les/zn0;->v()Z

    move-result v0

    if-nez v0, :cond_2

    iget-object v0, p0, Lcom/ss/android/socialbase/downloader/downloader/f;->a:Les/zn0;

    invoke-virtual {v0}, Les/zn0;->c0()J

    move-result-wide v0

    cmp-long v4, v0, v2

    if-gtz v4, :cond_2

    .line 9
    sget-object v0, Lcom/ss/android/socialbase/downloader/downloader/f;->p:Ljava/lang/String;

    iget-object v1, p0, Lcom/ss/android/socialbase/downloader/downloader/f;->a:Les/zn0;

    invoke-virtual {v1}, Les/zn0;->K0()Ljava/lang/String;

    move-result-object v1

    invoke-static {v0, v1}, Les/wn0;->b(Ljava/lang/String;Ljava/lang/String;)V

    .line 10
    new-instance v0, Lcom/ss/android/socialbase/downloader/e/f;

    const/16 v1, 0x414

    new-instance v2, Ljava/lang/StringBuilder;

    invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V

    const-string v3, "TotalBytes is 0, bytes changed with process : "

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    iget-object v3, p0, Lcom/ss/android/socialbase/downloader/downloader/f;->a:Les/zn0;

    invoke-virtual {v3}, Les/zn0;->b0()Lcom/ss/android/socialbase/downloader/b/b;

    move-result-object v3

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-direct {v0, v1, v2}, Lcom/ss/android/socialbase/downloader/e/f;-><init>(ILjava/lang/String;)V

    invoke-virtual {p0, v0}, Lcom/ss/android/socialbase/downloader/downloader/f;->a(Lcom/ss/android/socialbase/downloader/e/a;)V

    return-void

    .line 11
    :cond_2
    sget-object v0, Lcom/ss/android/socialbase/downloader/downloader/f;->p:Ljava/lang/String;

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const-string v2, ""

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    iget-object v2, p0, Lcom/ss/android/socialbase/downloader/downloader/f;->a:Les/zn0;

    invoke-virtual {v2}, Les/zn0;->O0()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string v2, " onCompleted start save file as target name"

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-static {v0, v1}, Les/wn0;->b(Ljava/lang/String;Ljava/lang/String;)V

    .line 12
    iget-object v0, p0, Lcom/ss/android/socialbase/downloader/downloader/f;->o:Les/tn0;

    .line 13
    iget-object v1, p0, Lcom/ss/android/socialbase/downloader/downloader/f;->d:Les/ao0;

    if-eqz v1, :cond_3

    .line 14
    invoke-virtual {v1}, Les/ao0;->e()Les/tn0;

    move-result-object v0

    .line 15
    :cond_3
    iget-object v1, p0, Lcom/ss/android/socialbase/downloader/downloader/f;->a:Les/zn0;

    invoke-virtual {v1}, Les/zn0;->w()Z

    move-result v1

    if-eqz v1, :cond_4

    .line 16
    iget-object v1, p0, Lcom/ss/android/socialbase/downloader/downloader/f;->a:Les/zn0;

    new-instance v2, Lcom/ss/android/socialbase/downloader/downloader/f$b;

    invoke-direct {v2, p0}, Lcom/ss/android/socialbase/downloader/downloader/f$b;-><init>(Lcom/ss/android/socialbase/downloader/downloader/f;)V

    invoke-static {v1, v0, v2}, Lcom/ss/android/socialbase/downloader/m/f;->a(Les/zn0;Les/tn0;Les/um0;)V

    goto :goto_0

    .line 17
    :cond_4
    iget-object v0, p0, Lcom/ss/android/socialbase/downloader/downloader/f;->a:Les/zn0;

    new-instance v1, Lcom/ss/android/socialbase/downloader/downloader/f$c;

    invoke-direct {v1, p0}, Lcom/ss/android/socialbase/downloader/downloader/f$c;-><init>(Lcom/ss/android/socialbase/downloader/downloader/f;)V

    invoke-static {v0, v1}, Lcom/ss/android/socialbase/downloader/m/f;->a(Les/zn0;Les/um0;)V

    :goto_0
    return-void
.end method

.method public g()V
    .locals 4

    .line 1
    sget-object v0, Lcom/ss/android/socialbase/downloader/downloader/f;->p:Ljava/lang/String;

    const-string v1, "onCompleteForFileExist"

    invoke-static {v0, v1}, Les/wn0;->b(Ljava/lang/String;Ljava/lang/String;)V

    const/4 v0, -0x3

    const/4 v1, 0x0

    .line 2
    invoke-direct {p0, v0, v1}, Lcom/ss/android/socialbase/downloader/downloader/f;->a(ILcom/ss/android/socialbase/downloader/e/a;)V

    .line 3
    iget-object v0, p0, Lcom/ss/android/socialbase/downloader/downloader/f;->b:Lcom/ss/android/socialbase/downloader/downloader/l;

    iget-object v1, p0, Lcom/ss/android/socialbase/downloader/downloader/f;->a:Les/zn0;

    invoke-virtual {v1}, Les/zn0;->N0()I

    move-result v1

    iget-object v2, p0, Lcom/ss/android/socialbase/downloader/downloader/f;->a:Les/zn0;

    invoke-virtual {v2}, Les/zn0;->c0()J

    move-result-wide v2

    invoke-interface {v0, v1, v2, v3}, Lcom/ss/android/socialbase/downloader/downloader/l;->c(IJ)Les/zn0;

    .line 4
    iget-object v0, p0, Lcom/ss/android/socialbase/downloader/downloader/f;->b:Lcom/ss/android/socialbase/downloader/downloader/l;

    iget-object v1, p0, Lcom/ss/android/socialbase/downloader/downloader/f;->a:Les/zn0;

    invoke-virtual {v1}, Les/zn0;->N0()I

    move-result v1

    invoke-interface {v0, v1}, Lcom/ss/android/socialbase/downloader/downloader/l;->d(I)V

    return-void
.end method

.method public h()V
    .locals 3

    .line 1
    iget-object v0, p0, Lcom/ss/android/socialbase/downloader/downloader/f;->a:Les/zn0;

    const/16 v1, 0x8

    invoke-virtual {v0, v1}, Les/zn0;->b(I)V

    .line 2
    iget-object v0, p0, Lcom/ss/android/socialbase/downloader/downloader/f;->a:Les/zn0;

    sget-object v2, Lcom/ss/android/socialbase/downloader/b/a;->b:Lcom/ss/android/socialbase/downloader/b/a;

    invoke-virtual {v0, v2}, Les/zn0;->a(Lcom/ss/android/socialbase/downloader/b/a;)V

    .line 3
    invoke-static {}, Lcom/ss/android/socialbase/downloader/downloader/c;->z()Lcom/ss/android/socialbase/downloader/impls/a;

    move-result-object v0

    if-eqz v0, :cond_0

    .line 4
    iget-object v2, p0, Lcom/ss/android/socialbase/downloader/downloader/f;->a:Les/zn0;

    invoke-virtual {v2}, Les/zn0;->N0()I

    move-result v2

    invoke-virtual {v0, v2, v1}, Lcom/ss/android/socialbase/downloader/impls/a;->a(II)V

    :cond_0
    return-void
.end method
